#ifndef _STAR_H_
#define _STAR_H_

#include "Object.h"

#define POWERUP_VX	0.1
#define GRAVITY		0.01

/************************************************************************/
/*Power la nam khi mario con nho, la hoa khi mario da lon				*/
/************************************************************************/

class Star : public Object
{
	//Object* container;				//object chua item, mac dinh item k hien len

	float _xOld;
	float _yOld;

	float _vx;
	float _vy;

	float _accelY;

	 
	bool	isCheckedContainer;

public:
	Star(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, int ID, int Object_State, int Direction);
	~Star();

	void Render();
	void Update(list<Object*>* staObjs, list<Object*>* dynObjs, DxInput* input, float TPF);
	void CheckObjects(list<Object*>* staObjs,list<Object*>* dynObjs);
	void Move(float TPF,list<Object*>* staObjs,list<Object*>* dynObjs);

	OBJECT_TYPE GetTypeObject();
	void ResetRect();
	void ChangeState(int state);
};

#endif